/* 针对登录页面的样式 */
body {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.login-header h1 {
    color: #1a2980;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-floating {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1.2rem 0.75rem;
    font-size: 1rem;
    line-height: 1.25;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333333;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.form-floating > label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: rgba(0, 150, 150, 0.7);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    pointer-events: none;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0;
    transform: scale(0.85) translateY(-1.5rem) translateX(0.15rem);
}
.form-floating > .form-control:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
    color: #333333;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}
.form-floating > .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}
.captcha-container {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.captcha-container .form-floating {
    flex: 0.6;
    margin-bottom: 0;
}
#captcha-image {
    flex: 0.4;
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    object-fit: fill;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    display: block;
}
#captcha-image:hover {
    transform: scale(1.05);
}
.btn-login {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 208, 206, 0.3);
}
.alert {
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        max-width: none;
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-floating {
        margin-bottom: 1rem;
    }

    /* 在移动设备上保持水平布局 */
    .captcha-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    /* 保持验证码输入框和图片的宽度比例 */
    .captcha-container .form-floating {
        flex: 0.6;
    }

    #captcha-image {
        flex: 0.4;
    }

    .btn-login {
        padding: 0.8rem;
        font-size: 1rem;
    }
} 